package com.dfrz.stockMarket.dao;

import com.dfrz.stockMarket.bean.MessageBean;
import com.dfrz.stockMarket.model.UserInfoModel;
import com.dfrz.stockMarket.model.UserOrderModel;
import com.dfrz.stockMarket.model.UserPurseModel;
import com.dfrz.stockMarket.model.UserStocksModel;

public class UserDao extends BaseDao{
	public static MessageBean save(UserInfoModel userInfoModel) throws Exception {
		UserInfoDao userInfoDao = new UserInfoDao();
		
		
		return userInfoDao.save(userInfoModel);
	}
	
	public MessageBean save(UserPurseModel userPurseModel) {
		UserPurseDao userPurseDao = new UserPurseDao();
		return userPurseDao.save(userPurseModel);
	}
	
	public static MessageBean save(UserOrderModel userOrderModel) throws Exception {
		UserOrderDao userOrderDao = new UserOrderDao();
		return userOrderDao.save(userOrderModel);
	}
	
	public static MessageBean save(UserStocksModel userStocksModel) throws Exception{
		UserStocksDao userStocksDao = new UserStocksDao();
		return userStocksDao.save(userStocksModel);
	}
	public static MessageBean GetAllUser(UserStocksModel userStocksModel) throws Exception{
		UserStocksDao userStocksDao = new UserStocksDao();
		return userStocksDao.save(userStocksModel);
	}
}
